package com.liu.my_blog_system.service.impl;

import com.liu.my_blog_system.utils.EmailSender;
import org.springframework.scheduling.annotation.Async;
import org.springframework.stereotype.Service;

@Service
public class TaskService {
    @Async
    public void sendEmailVerifyCode(String emailaddr, String subject, String message) {
        try {
            EmailSender.sendText(emailaddr, subject, message);
        } catch (Exception e) {
            e.printStackTrace();
        }

    }
}
